
import moduleA from "./moduleA";
import moduleES6 from "./moduleES6";
import header from "./header.jpg"
import React, { Component } from 'react';
import ReactDom from 'react-dom';
import "./index.less"
console.log(moduleA());
function insertImg() {
    const imageElement = new Image();
    imageElement.src = `${header}`;
    document.body.appendChild(imageElement);
}
console.log(88);
moduleES6()
insertImg();
class App extends Component {
    render() {
        const arr = [1, 2, 3, 43];
        return (
            <div>
                <div className="header">
                    <p>header</p></div>
                {arr.map((item) => <h1 key={item}>num:{item}</h1>)}
            </div>
        )
    }
}

ReactDom.render(<App />, document.getElementById('root'))
